package com.example.online.music.model.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;

import java.util.Date;

/**
 * @Description: 购物车子项类
 * @Author: Jason
 * @date: 2023.6.29
 */
@TableName(value = "cart_list")
@Data
public class CartList {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer userId;

    private Integer songId;

    private Double price;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
